package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_INFO_PARAM"
 *     
*/
public class CcpInfoParam implements Serializable {

    /** identifier field */
    private String cfpGuid;

    /** nullable persistent field */
    private String cfbLabel;

    /** persistent field */
    private String isDicvalue;

    /** persistent field */
    private String paramName;

    /** nullable persistent field */
    private String paramValue;

    /** nullable persistent field */
    private String isUsed;

    /** nullable persistent field */
    private String colAttri;

    /** full constructor */
    public CcpInfoParam(String cfpGuid, String cfbLabel, String isDicvalue, String paramName, String paramValue, String isUsed, String colAttri) {
        this.cfpGuid = cfpGuid;
        this.cfbLabel = cfbLabel;
        this.isDicvalue = isDicvalue;
        this.paramName = paramName;
        this.paramValue = paramValue;
        this.isUsed = isUsed;
        this.colAttri = colAttri;
    }

    /** default constructor */
    public CcpInfoParam() {
    }

    /** minimal constructor */
    public CcpInfoParam(String cfpGuid, String isDicvalue, String paramName) {
        this.cfpGuid = cfpGuid;
        this.isDicvalue = isDicvalue;
        this.paramName = paramName;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CFP_GUID"
     *         
     */
    public String getCfpGuid() {
        return this.cfpGuid;
    }

    public void setCfpGuid(String cfpGuid) {
        this.cfpGuid = cfpGuid;
    }

    /** 
     *            @hibernate.property
     *             column="CFB_LABEL"
     *             length="32"
     *         
     */
    public String getCfbLabel() {
        return this.cfbLabel;
    }

    public void setCfbLabel(String cfbLabel) {
        this.cfbLabel = cfbLabel;
    }

    /** 
     *            @hibernate.property
     *             column="IS_DICVALUE"
     *             length="1"
     *             not-null="true"
     *         
     */
    public String getIsDicvalue() {
        return this.isDicvalue;
    }

    public void setIsDicvalue(String isDicvalue) {
        this.isDicvalue = isDicvalue;
    }

    /** 
     *            @hibernate.property
     *             column="PARAM_NAME"
     *             length="20"
     *             not-null="true"
     *         
     */
    public String getParamName() {
        return this.paramName;
    }

    public void setParamName(String paramName) {
        this.paramName = paramName;
    }

    /** 
     *            @hibernate.property
     *             column="PARAM_VALUE"
     *             length="50"
     *         
     */
    public String getParamValue() {
        return this.paramValue;
    }

    public void setParamValue(String paramValue) {
        this.paramValue = paramValue;
    }

    /** 
     *            @hibernate.property
     *             column="IS_USED"
     *             length="1"
     *         
     */
    public String getIsUsed() {
        return this.isUsed;
    }

    public void setIsUsed(String isUsed) {
        this.isUsed = isUsed;
    }

    /** 
     *            @hibernate.property
     *             column="COL_ATTRI"
     *             length="25"
     *         
     */
    public String getColAttri() {
        return this.colAttri;
    }

    public void setColAttri(String colAttri) {
        this.colAttri = colAttri;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("cfpGuid", getCfpGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpInfoParam) ) return false;
        CcpInfoParam castOther = (CcpInfoParam) other;
        return new EqualsBuilder()
            .append(this.getCfpGuid(), castOther.getCfpGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCfpGuid())
            .toHashCode();
    }

}
